Error data correcting system

ABSTRACT

An input data signal, in which n data words W 1  to W n  and two check words P and Q are treated as one data block, is processed by P and Q decoding circuits. The decoded data S 1  and T i- (n+1) S 2  from the decoding circuits are added to each other in an adder to generate S 1  +T i (n+1) S 2  which is in turn selected by a gate circuit in accordance with a selection signal. The selection signal is supplied from an M matrix generator (MG) embodied as a linear feedback shift register for H(x)=X m  +X g  +1. The initial value of the linear feedback shift register is set in accordance with the error word data derived from an error word control circuit and the order of the data to be decoded. The decoded data sequentially selected from the gate circuit are added by an adder to be the data W je  to be decoded, while at the same time those are added to the S 1  by an adder to be the data W ie  to be decoded. The data W je  and W ie  is added to the corresponding data words W i  and W j  of the input data signal having passed through a one-block delay circuit by an adder, whereby the error data are corrected.

FIELD OF THE INVENTION

The invention relates to an error data correcting system adaptable for a system for transmitting, recording and reproducing digitized information signals by PCM (pulse code modulation), for example, and, more particularly, to improvements over an M matrix generator used in the error data correcting system.

BACKGROUND OF THE INVENTION

In an error data correcting system of this type, which has been proposed heretofore in this field, n data words Wl to Wn each containing m bits additionally include a first check code ##EQU1## as the sum of bits corresponding to the data words and a second check code ##EQU2## as the sum of the bits corresponding to the signals generated through the operation of a polynomial X^(m) +X^(g) +1 by an auxiliary matrix (T). The error data correcting system can correct the error words up to two words by using an M matrix generator for decoding.

A ROM (read only memory) has generally been used for the M matrix generator for decoding, because of the time restriction in the decoding process.

In the case of an audio PCM recorder known as a record/reproduction system, for example, one word includes 12 to 16 bits, generally. If the error data correcting system is applied to such a system, the memory capacity of the ROM used must be considerably large and an address counter to control the ROM is further needed. The overall system accordingly is complicated in the circuit construction. Additionally, the number of components necessary when the circuit is fabricated by LSI technology, is enormous.

OBJECTS AND SUMMARY OF THE INVENTION

Accordingly, an object of the invention is to provide an error data correcting system which uses as an M matrix generator for decoding, a linear feedback shift register of H(x)=X^(m) +X^(g) +1 allowing a reduction of the size of the system and high-speed processing of data.

Another object of the invention is to provide an error data correcting system with an M matrix generator for decoding which permits a greater decrease in the number of elements necessary for an LSI version of the circuit.

According to the invention, there is provided an error data correcting system in which a group of n data words Wl to Wn each including m bits has additionally a check code ##EQU3## generated by adding the bits corresponding to the data words and another check code ##EQU4## generated by adding the bits corresponding to the signals formed through the operation by an auxiliary matrix (T) of a polynomial X^(m) +X^(g) +1, and wherein error words are corrected by using an M matrix generator for decoding. In such a system, a linear feedback shift register for H(x)=X^(m) +X^(g) +1 is used for the M matrix generator for decoding. An initial data generator circuit sets the initial value of the linear feedback shift register to values necessary for decoding a specific data of the data to be decoded (a1, a2, . . . a_(g), . . . a_(m)) or the values obtained by shifting the former values by one shift position in the reverse direction by the linear feedback shift register. By shifting the shift register in such a manner, the contents left therein are sequentially outputted and employed as selection signals from the linear feedback shift register, starting from the initial value or the value after an initial reverse shift.

Such an arrangement obviates the necessity of providing a larger-capacity ROM, address counters, etc., as in the conventional system and permits the provision of a simpler, high-speed, LSI version of a system with a drastic decrease in the number of elements.

BRIEF DESCRIPTION OF THE DRAWINGS

Other objects and features of the invention will be apparent from the following description taken in connection with the accompanying drawings, in which:

FIGS. 1 to 3 illustrate schematic diagrams of shift registers useful in explaining the principle of the data correcting system of the present invention;

FIGS. 4 and 5 illustrate schematic diagrams for explaining the principle of an error data correcting system according to the present invention;

FIG. 6 shows a block diagram of an error data correcting system according to the present invention;

FIG. 7 shows a block diagram of an M matrix generator for decoding and a decoding section used in the circuit shown in FIG. 6; and

FIGS. 8 to 12 show block diagrams of other examples of M matrix generators for decoding.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

The principle of an error data correcting system involved in the present invention will first be described.

It is assumed that n data words and two parity check codes are expressed below and each data word is comprised of m bits. ##EQU5## Here codes P and Q of the check words are expressed by ##EQU6## The parity check matrix of those codes is ##EQU7## where T is a Q generator matrix and I is a unit matrix.

This will be further described. Rewriting the equations (1) and (2), we have ##EQU8##

When the ith and jth data are dropped, the solutions of the equations (3) and (4) are not "0" but syndromes S₁ and S₂ given by equations (5) and (6). Assume again that the original data words are expressed by W₁, W₂, . . . (W_(i)) . . . (W_(j)) . . . W_(n) and the data words of which the ith and the jth data are dropped are expressed by W'₁, W'₂ . . . (W'_(i)) . . . (W'_(j)) . . . W'_(n), and that W'_(i) =W_(i) +W_(ie), W'_(j) =W_(j) +W_(je), and W'=W. ##EQU9## Further ##EQU10## From the equation (7), we have

    W.sub.ie =S.sub.1 ⊕W.sub.je                            (9)

putting the equation (9) into the equation (8), we have

    S.sub.2 =T.sup.(n+1)-i (S.sub.1 ⊕W.sub.je)⊕T.sup.(n+1)-j W.sub.je ( 10)

This equation can be rewritten as

    T.sup.i-(n+1) S.sub.2 =S.sub.1 ⊕W.sub.je ⊕T.sup.i-j W.sub.je (11)

    S.sub.1 ⊕T.sup.i-(n+1) S.sub.2 =W.sub.j ⊕T.sup.i-j W.sub.j =(I⊕T.sup.i-j)W.sub.j                                 (11')

and hence

    W.sub.je =(I⊕T.sup.i-j).sup.-1 (S.sub.1 ⊕T.sup.i-(n+1) S.sub.2) (12)

    W.sub.ie =S.sub.1 ⊕W.sub.je                            (13)

As seen from the equations (12) and (13), the data dropped may be decoded by using the syndromes S₁ and S₂. The data words, when decoded, are W_(i) +W_(ie) and W_(j) +W_(je) and therefore if W_(ie) and W_(je) are decoded, the ith and jth words W_(i) and W_(j) may be decoded.

In this way, the correct original data words W_(i) and W_(j) may be decoded through the decoding of W_(ie) and W_(je). The system according to the present invention to be described below relates mainly to the generation of W_(ie) and W_(je).

Another decoding method may be considered. That is, when S₁ and S₂ are evaluated, information words are not all added together, but only the data words other than the error words are added together and W_(i) and W_(j) are directly decoded with the definitions S'₁ =W_(i) ⊕W_(j) and S'₂ =T.sup.(n+1)-i W_(i) ⊕T.sup.(n+1)-j W_(j).

The former decoding method in which the error data word is corrected with the definition ##EQU11## and ##EQU12## will further be described in detail. In the description to be given, it is assumed that there are six data words in a group of N words, that each word includes 4 bits, and that the T matrix is given by ##EQU13## This matrix is an auxiliary matrix of a polynomial 1+x+x⁴. Accordingly, if B=TA, the signals of the respective 4 bits are

    b1=a4, b2=a1⊕a4, b3=a2, b4=a3

Such a T matrix operation will be understood when considering Galois field GF(2⁴) formed by a polynomial ring with F(x)=x⁴ +x+1 as a modulus polynomial.

    x.sup.4 +x+1=0, x.sup.4 =x+1

    x(a1+a2x+a3x.sup.2 +a4x.sup.3)=a1x+a2x.sup.2 +a3x.sup.3 +a4x.sup.4 =a4+(a1+a4)x+a2x.sup.2 +a3x.sup.3

From the above-mentioned equations, it is seen that b1=a4, b2=a1+a4, b3=a2, and b4=a3.

Such an operation may be performed by using a shift register arranged in the form of a polynomial as shown in FIG. 1.

When data A is first loaded into the shift register and it is shifted by one, the T matrix of the data A is operated. When the data A is shifted by n the matrix becomes, T^(n) A.

The check codes P and Q of the data words W₁ to W₆ thus obtained are ##EQU14## Here, the P code is formed by addition of bits corresponding to the respective words W₁ to W₆. The addition is represented by ⊕, the ring addition exclusive OR of the corresponding bits, that is to say, the addition of mod 2. The Q code is generated by the data matrix operated by the shift register shown in FIG. 1.

In the correcting method as described above, data errors occurring in up to two words in the data words W₁ to W₆, will not prevent data words W₁ to W₆ may be completely decoded.

From the equations (12) and (13), we have

    W.sub.ie =S.sub.1 ⊕W.sub.je                            (16)

    W.sub.je =(I⊕T.sub.i-j).sup.-1 (S.sub.1 ⊕T.sup.i-7 S.sub.2) (17)

when S1⊕T^(i-7) S2=m, the equation (17) is rewritten as below

    W.sub.je =(I⊕T.sup.i-j).sup.-1 (S.sub.1 ⊕T.sup.i-7 S.sub.2)=Mk·m                                    (18)

where

    M.sub.k =(I⊕T.sup.-k).sup.-1                           (19)

In the equation (19), k=j-i

When there are six data words, Mk includes M1 to M5.

It is for this reason that an M matrix generator is generally used for decoding Wi and Wj. Commonly, such data have not had predictable values and a restriction has been placed on the decoding process. For this reason, it is common practice that the matrix has been stored in a ROM.

The operation of T^(-n) may be made by inverting the shift register shown in FIG. 1 in its connection, and shifting the one n times. When the T matrix is used as an auxiliary matrix of the polynomial 1+x+x⁴, M₁ to M₅ are ##EQU15##

The actual flow of the decoded data will now be further described in detail. Assume now that data words W₁ to W₂ of the W₁ to W₆ are erroneous. Since i=1 and j=2, k=1 by the equation k=j-i.

First

    W.sub.2e =M.sub.1 (S.sub.1 ⊕T.sup.-6 S.sub.2)

    W.sub.1e =S.sub.1 ⊕W.sub.2e

and if

    S.sub.1 =[S'.sub.1, S'.sub.2, S'.sub.3, S'.sub.4 ]

    S.sub.2 =[h.sub.1, h.sub.2, h.sub.3, h.sub.4 ]

    W.sub.1e =[a.sub.1, a.sub.2, a.sub.3, a.sub.4 ]

    W.sub.2e =[b.sub.1, b.sub.2, b.sub.3, b.sub.4 ]

we have

S₁ =W_(1e) ⊕W_(2e)

S₂ =T⁶ W_(1e) ⊕T⁵ W_(2e)

S'₄ =a₄ ⊕b₄, h₄ =a₂ ⊕a₁ ⊕a₄ ⊕b₃ ⊕b₂

S'₃ =a₃ ⊕b₃, h₃ =a₁ ⊕a₃ ⊕b₂ ⊕b₁ ⊕b₄

S'₂ =a₂ ⊕b₂, h₂ =a₄ ⊕a₂ ⊕b₁ ⊕b₃

S'₁ =a₁ ⊕b₁, h₁ =a₃ ⊕a₂ ⊕b₄ ⊕b₃

T^(i-7) S₂ obtained is

    T.sup.i-7 S.sub.2 =T.sup.-6 S.sub.2 =T.sup.-6 (T.sup.6 W.sub.1e ⊕T.sup.5 W.sub.2)=W.sub.1e ⊕T.sup.-1 W.sub.2e

Therefore, if

    T.sup.-6 S.sub.2 =[l.sub.1, l.sub.2, l.sub.3, l.sub.4 ]

    T.sup.-6 S.sub.2 =W.sub.1e ⊕T.sup.-1 W.sub.2e

    l.sub.4 =a.sub.4 ⊕b.sub.1

    l.sub.3 =a.sub.3 ⊕b.sub.4

    l.sub.2 =a.sub.2 ⊕b.sub.3

    l.sub.1 =a.sub.1 ⊕b.sub.2 ⊕b.sub.1

Let us obtain m, i.e. S₁ +T⁻⁶ S₂.

    S.sub.1 ⊕T.sup.-6 S.sub.2 =W.sub.1e ⊕W.sub.2e ⊕T.sup.-1 W.sub.2e =W.sub.2e ⊕T.sup.-1 W.sub.2e

    S.sub.1 ⊕T.sup.-6 S.sub.2 =W.sub.2e ⊕T.sup.-1 W.sub.2e

    m.sub.4 =b.sub.4 ⊕b.sub.1

    m.sub.3 =b.sub.3 ⊕b.sub.4

    m.sub.2 =b.sub.2 ⊕b.sub.3

    m.sub.1 =b.sub.1 ⊕b.sub.2 ⊕b.sub.1

where

    m=[m.sub.1, m.sub.2, m.sub.3, m.sub.4 ].

From the equation (18), W_(2e) =Mk·m

    W.sub.2e =(I⊕T.sup.-1).sup.-1 (S.sub.1 ⊕T.sup.-2 s.sub.2)

Here M₁ of the M matrix is used for (1⊕T⁻¹)⁻¹.

When m₁ to m₃ of those m₄ to m₁ are all summed, ##EQU16## Accordingly, b₄ may be decoded. Similarly, b₃ is decoded by m₁ and m₂ ; b₂ by m₁ ; b₁ by m₁ to m₄. W_(2e) =M·m and M is already known as described above. Therefore, by multiplying M₁ by m, W_(2e) may be decoded.

Before proceeding with the description of M₁ to M₅, the operation of the Galois field will be described. Also in this case, the Galois field GF(2⁴) is formed by the polynomial ring of which the modulus polynomial is F(x)=x⁴ +x+1. The expression of the Galois field GF(2⁴) is tabulated in the following table.

    ______________________________________                                         Exponent of denear coupling Vector                                               α   of 1, α, α.sup.2, α.sup.3                                                    expression                                         ______________________________________                                          --         0               0 0 0 0                                            α.sup.0                                                                                1             1 0 0 0                                            α.sup.1                                                                                 α      0 1 0 0                                            α.sup.2                                                                                  α.sup.2                                                                              0 0 1 0                                            α.sup.3                                                                                  α.sup.3                                                                              0 0 0 1                                            α.sup.4                                                                              1 + α     1 1 0 0                                            α.sup.5                                                                                 α + α.sup.2                                                                     0 1 1 0                                            α.sup.6                                                                                    α.sup.2 + α.sup.3                                                            0 0 1 1                                            α.sup.7                                                                              1 + α   + α.sup.3                                                                  1 1 0 1                                            α.sup.8                                                                              1 + α.sup.2                                                                              1 0 1 0                                            α.sup.9                                                                                 α + α.sup.3                                                                     0 1 0 1                                            α.sup.10                                                                             1 + α + α .sup.2                                                                   1 1 1 0                                            α.sup.11                                                                                α + α.sup.2 + α.sup.3                                                     0 1 1 1                                            α.sup.12                                                                             1 + α + α.sup.2 + α.sup.3                                                    1 1 1 1                                            α.sup.13                                                                             1    α.sup.2 + α.sup.3                                                             1 0 1 1                                            α.sup.14                                                                             1      + α.sup.3                                                                         1 0 0 1                                            ______________________________________                                    

In the table, α is a root in the Galois field GF(2⁴) of x⁴ +x+1. As seen from the vector expression, the multiplication of α^(i) by α is performed in a manner that the vector expression of α^(i) is set in the circuit shown in FIG. 2 and is shifted by one time. Accordingly, the multiplication of α^(i) by α^(j) is made by shifting it j times.

A circuit for effecting a division by α, that is, the circuit for effecting α⁻¹, may be realized by inverting the circuit in FIG. 2 in its connection. Here, if x⁴ +x+1=0 and x=1/y, we have y⁻⁴ +y⁻¹ +1=0 if it is multiplied by y⁴,

    y.sup.4 +y.sup.3 +1=0                                      (20)

In this version of the equation, apparently, α¹⁵ =α⁰. Further, α(1+α³)=α+α⁴ =1 and, therefore, it is seen that α⁻¹ is equal to α¹⁴.

If a dividend α^(i) =(a₁, a₂, a₃, a₄)=a₁ +a₂ x+a₃ x² +a₄ x³, ##EQU17## When F(x)=x⁴ +x³ +1 is a modulus polynomial,

    x.sup.4 =1+x.sup.3 ##EQU18## As seen from the above, the division is made by the inversion of the circuit. The circuit divided by α is shown in FIG. 3.

In view of the above-mentioned points, the M matrix in the equation (18) will be described.

    W.sub.je =(1⊕T.sup.i-j).sup.-1 (S.sub.1 ⊕T.sup.i-7 S.sub.2) (23)

where

    S.sub.1 +T.sup.i-7 S.sub.2 =(m.sub.1, m.sub.2, m.sub.3, m.sub.4)=m.sub.1 +m.sub.2 x+m.sub.3 x.sup.2 +m.sub.4 x.sup.3               (24)

In this case, i and j each range from 1 to 6 and accordingly i-j=-1 to -5.

When considering this in the Galois field GF(2⁴) with the modulus polynomial of F(x)=x⁴ +x³ +1, ##EQU19## Rewriting this into a linear coupling of the Galois field with the modulus polynomial of F(x)=x⁴ +x+1,

we have

    W.sub.je =(m.sub.1 +m.sub.2 +m.sub.3 +m.sub.4)+m.sub.1 x+(m.sub.1 +m.sub.2)x.sup.2 +(m.sub.1 +m.sub.2 +m.sub.3)x.sup.3      (27)

It is seen that the equation (27) is equal to the M₁ matrix (or the vector diagram) of the M matrix.

Similarly, when k=2, ##EQU20## When the vector at this time is obtained, it is equal to the M₂ matrix of the M matrix.

When k=1, the multiplication of x³ is made in F(x)=x⁴ +x³ +1. To be specific, S₁ +T^(i-7) S₂ is set in the circuit of FIG. 3 at an inverse position and it is shifted three times. The signal remaining in the shift register after the shifting three times is W_(je).

When k=2, the shift register is shifted six times.

In investigating the Galois field GF(2⁴) with the modulus polynomial of F(x)=x⁴ +x+1, from the equation (23), we have ##EQU21## Accordingly, the equation (29) is equal to the equation (27).

In other words, (S₁ ⊕T^(i-7) S₂)=(m₁, m₂, m₃, m₄) is set in the shift register shown in FIG. 2 and (1+x+x² =α¹²) is shifted therein 12 times. At this time, the data left in the shift register is W_(je), as seen from the above-mentioned table.

As seen from the foregoing description, the decoding may be performed on the basis of the polynomial which the matrix T depends on. Accordingly, it is evident that the decoding may be made by the shift register connected in the polynomial manner.

As seen from the foregoing description, it is apparent that the vector space in the Galois field GF(2⁴) with the modulus polynomial of F(x)=x⁴ +x+1 develops the T matrix, the M₁ to M₅ matrixes and a T⁻¹ matrix to be described later.

In the operation of T⁻¹, F(x)=x⁴ +x³ +1 is used and this is a reciprocal polynomial for F(x)=x⁴ +x+1. Further, it is evident that the view of the position of the original data is merely inverted.

Further, it is apparent that, when each data is comprised of 4 bits, the polynomial is of the fourth degree, and when the operation circuit is implemented by a shift register decoding the polynomial requires 15 shift operations. That is, the operation of two elements a and b allows the maximum 15 shifts when the operation circuit is a shift register.

Moreover, when the operation circuit is embodied as shift registers, if the degree of the polynomial is large, it is necessary to shift the shift register by 2¹² to 2¹⁴, so that the decoding operation takes a long time. When data is transmitted by PCM or the like, time for the decoding processing is limited. It is for this reason that the M matrix for decoding, such as the M₁ to M₅ matrixes, are loaded into a ROM (read only memory) and are sequentially read out to select the signal S₁ +T^(j-)(n+1) S₂ and decode it. A ROM capable of adequately performing in this manner is a physically large hardware element.

The explanation to follow is how a data correcting method is applied to an error data correcting system according to the present invention.

As described above, the check code Q depends on the auxiliary matrix of the polynomial X^(m) +X^(g) +1. It is also seen from the foregoing description that the M matrix to be corrected is on the space vector generated in the Galois field (2^(m)) with the polynomial of x^(m) +x^(g) +1. For this reason, with the initial value set to a given value, the M matrix for decoding is generated by an M matrix generator implemented by a linear feedback shift register designed to output H(x)=X^(m) +X^(g) +1. However, to perform the matrix operation, the data generated by the linear feedback shift register must have already been generated.

This will be described in detail by rewriting the T matrix as below. ##EQU22## In the T matrix thus rewritten, column a employs F(x)=x⁴ +x+1 as a modulus polynomial. Accordingly, in the circuit shown in FIG. 4, only the register 1 is set to "1" and then when it is shifted by one, the column a₁ is generated. Similarly, the column a₂ is generated for two shifts; the column a₃ is generated for three shifts; the column a₄ is generated for four shifts.

Let us consider a signal at the cross-point of b₃ and a₄. The signal at this cross-point corresponds to that at the cross-point of b₂ and a₃. The signal at the cross-point of b₂ and a₃ corresponds to the sum of the signals at the cross-points b₄ and a₂ and b₁ and a₂. The signal at the cross-point of b₁ and a₂ corresponds to that at the cross-point of b₄ and a₁. Therefore, the signal at the cross-point of b₃ and a₄ corresponds to the sum of the signals at the cross-points b₄ and a₁ and b₄ and a₂. Similarly, the signal for the b₃ and a₃ combination corresponds to that for the b₄ and a₄ combination; the signal for the b₃ and a₂ combination to that for the b₄ and a₃ combination; the signal for the b₃ and a₁ combination to that for the b₄ and a₂ combination.

In this manner, the column b₃ is obtained. Similarly, the column b₂ may be obtained.

This relation may be expressed in terms of a circuit, as illustrated in FIG. 5. This circuit is a linear feedback shift register of H(x)=x⁴ +x+1.

In the circuit of FIG. 5, when 0001 is set in the shift register and is shifted four times, the vectors thereof are tabulated below. ##EQU23## Comparing this with the T matrix rewritten as mentioned above, only the columns b₁ ' and b₁ are different from each other. Since the signal for the b₂ and a₄ is the sum of the signals for the b₄ and a₅, and b₁ and a₃ combinations, the signal for the b₁ and a₃ combination must be the sum of the signals for the b₄ ' and a₃ combination and the b₂ ' and a₄ combination. Accordingly, it is evident that the column b₁ may be obtained by adding b₁ ' and b₄ '.

With respect to the development of vectors, the same thing is true for the selection matrix for the M matrix decoding, except for the initial value.

When the order of the decode is not considered, there is no need for the addition of b₁ ' and b₄ ' if the column b₁ is set as the initial value.

FIG. 6 shows a block diagram of an error data correcting system based on the principle as described above. A data input signal to be corrected is applied to an input terminal (IN) of the error data correcting system. In the data input signal, n data words and two check words expressed by W₁ to W_(n) are used as one block and each word is comprised of 4 bits. The data input signal is supplied to a P decoder (11) and a Q decoder (12), which operate in bit parallel and word serial modes. Upon receipt of the data input signal, the P decoder (11) produces the syndrome (S₁) and the Q decoder (12) produces T^(i-)(n+1) S₂. The P decoder (11) is comprised of a register (111) for performing an addition (exclusive OR) as described above and a buffer (112). The Q decoder (12) is comprised of a register (121) for performing an addition (exclusive OR) attendant with the matrix operation as described above and a buffer (122).

The S₁ and T^(i-)(n+1) S₂ values decoded and generated are both applied to an adder (A-1) where they are added to each other. The added data is sequentially selected from a gate circuit (G-1) by a selecting signal produced from an M matrix generator (MG) comprised of a linear feedback shift register to be described later. The M matrix generator is controlled by an error word control circuit (EC), and the output of the matrix generator and the adder A-1 are added by an adder (A-2), so that W_(je) is decoded and generated. W_(je) is generally shifted in bit serial format.

In this case, if S₁ ⊕T^(i-)(n+1) S₂ =(m₁, m₂, m₃, m₄), when j-i is 1, the M matrix generator MG produces an M₁ matrix selection signal in the M matrix. The lowermost row of the M₁ matrix and S₁ +T^(i-)(n+1) S₂ are multiplied by the gate circuit (G-1), so that m₁ ×1=W₁, m₂ ×1=W₂, m₃ ×1=W₃, M₄ ×0=0=W₄. W₁ to W₄ are all sum by the adder (A-2) and the summed is transferred to a serial-to-parallel converter (SIPO) where b₄ of the W_(je) is decoded.

Then, the M matrix generator (MG) produces the second row 1100 from the bottom of the matrix and b₃ of the W_(je) is decoded. Subsequently, b₂ and b₁ of the W_(je) are decoded through a similar procedure.

W_(je) after decoding and generating is added to S₁ in the adder (A-3), so that the W_(ie) is decoded and generated. In this case, S₁ is applied to the adder (A-3), through a gate circuit (G-2) enabled by a signal derived from the error control circuit (EC).

Part of the input data signal is directly applied to an adder (A-4) through a delay circuit (DL) after a delay of one data block. When the input data signal has no error, the decoding section produces "0". In this case, the input data signal is derived directly from the output terminal (OUT).

When the first error word, W_(ij) is received, the decoded W_(ie) is transferred to an adder (A-4), so that the correct data W_(i) is reproduced and derived from the output terminal (OUT). When the second error word W_(j) ' is received, the gate circuit (G-2) is disabled and therefore the addition of S₁ is not performed in the adder (A-3), so that W_(je) is transferred directly to the adder (A-4). As a result, the correct data W_(j) is reproduced and derived from the output terminal (OUT).

As recalled, W_(ie) and W_(je) designate the dropped or missing ith and jth data words. Accordingly, through the above-mentioned operation, the data words W₁ to W_(n) including such error data are correctly decoded.

The error word control circuit (EC) controls the M matrix generator (MG) in such a way that the interval between the error words, i.e., the information k (=j-i), is checked and the M matrix is produced corresponding to the interval checked. This may easily be realized by detecting a cyclic redundancy check signal appended to the input data signal by a cyclic redundancy check code generating circuit including a shift register functioning as an error pointer. In addition to the k data and a gate signal (GS), the error word control circuit (EC) produces a clock pulse (Cp), a preset pulse (Pr), and a gate control signal (CG), which are used in embodiments to be described later. Such a pulse generating function may be accomplished by using a known pulse generating device.

An embodiment of the M matrix generator (MG) and the decoding section will be described in detail referring to FIG. 7. It will expressly be understood that, in the description to follow, the T matrix is treated as an auxiliary matrix for the polynomial x⁴ +x+1, and the data words W₁ to W_(n) comprise six data words each including 4 bits. The ith and jth data words are dropped, i.e. in error. An initial data generating circuit 22 including an inverter (I₁) and OR circuits (OR₁) to (OR₃) checks the interval k (=j-i) between the dropped data words W_(i) to W_(j). When k=1, the initial data generating circuit 22 sets 1111 in flip-flops FF₁ to FF₄ of a linear feedback shift register 21 for the M matrix generator (MG) as the initial data state. When k=2, it sets 1010 into the same flip-flops. As shown, the linear feedback shift register 21 is comprised of the flip-flops FF₁ to FF₄ and an exclusive OR gate, EX-OR₁. Similarly, a selection signal necessary to decode the data word W₁ is set in the flip-flops.

Every time a clock pulse Cp is received, the flip-flops FF₁ to FF₄ produce signals to select the data words W₄, W₃ and W₂.

The selection of the data word W_(je) from S₁ +T^(i-7) S₂ applied from the adder (A₁) by this signal is performed by AND gates G₁₁ to G₁₄ corresponding to the gate circuit (G-1). The output signals from the gates are added by the exclusive OR gates, EX-OR₂ to EX-OR₄ to decode the data W_(je) in a bit serial manner.

The decoded data is transferred to flip-flops FF_(a) to FF_(b) comprising the serial input parallel output converter (SIPO) and as it is shifted four times, to generate the data word W_(je).

In FIG. 7, Pr is a signal to preset the initial value (a selection signal to the uppermost row, or W₁, of the M matrix 3 of the M matrix in this embodiment) at the first stage of the decoding operation. Cp is a clock pulse for reading out W₁, W₄, W₃ and W₂ and is set in the flip-flops FF₁ to FF₄ as a selection signal to decode W₁ by the first preset signal Pr.

At an instant that the first clock pulse Cp sets W₁ to the flip-flop FF_(a), it is changed into a selection signal to decode W₄ in the FF₁ to FF₄. When the flip-flops second pulse Cp sets W₁ in the flip-flop FF_(b) and the W₄ in the flip-flop FF_(a), the contents of the flip-flops FF₁ to FF₄ simultaneously change the selection signal to decode W₃. Subsequently, W₃ and W₂ are set into the flip-flops FF_(a) to FF_(d), so that the decoding data are set therein by four clock pulses Cp such as FF_(a) (W₂), FF_(b) (W₃), FF_(c) (W₄) and FF_(d) (W₁).

Explanation will be given about the decoding of the error data components W_(2e) and W_(5e) of the W₂ ' and W₅ ' as specific examples. In this case, the error words are the second and fifth words, so that k=j-i=3. Further, m₁ =1, m₂ =1, m₃ =1 and m₄ =0.

Firstly, the flip-flops FF₁ to FF₄ are set to the values FF₁ =1, FF₂ =0, FF₃ =0 and FF₄ =1, through the inverter (I₁) and the OR circuits OR₁ to OR₃ by the preset signal (Pr), although the preset data control signals 1, 2, 4 and 5 are "0" and only the signal 3 is "1". The contents of the flip-flops FF₁ to FF₄ are transferred as inputs to first terminals of the corresponding gate circuits (G₁₁) to (G₁₄) also receiving at second terminals m₁ to m₄ of the S₁ ⊕T^(i-7) S₂ lines, respectively.

Here, the G₁₁ output is m₄ ×FF₁ ="0"×"1"=0; the G₁₂ output is m₃ ×FF₂ =1×0=0; the G₁₃ output is m₂ ×FF₃ =1×0=0; the G₁₄ output is m₁ ×FF₄ =1×1=1. The output signals of G₁₁ to G₁₄ are all added, by the exclusive OR gate EX-OR₄.

Accordingly, under this condition, when the clock pulse Cp is received, the flip-flop FF_(a) is set to "1" and simultaneously the flip-flops FF₁ to FF₄ are set to "1", "1", "0" and "0". The signals of the m₄ to m₁ and FF₁ to FF₄ are transferred to the gates G₁₁ to G₁₄, so that the gate EX-OR₄ produces an output "1". When the clock pulse Cp is received again, the flip-flop FF_(a) stores "1" and "1" as previously stored in FF_(a) before it is set is transferred to the flip-flop FF_(b). Simultaneously, the flip-flops FF₁ to FF₄ are set to 0110. Similarly, the gate EX-OR₄ produces an output signal "0". Then, the next clock pulse Cp sets the FF_(a) to "0" and the FF_(b) and FF_(c) to "1".

As a result, FF₁ to FF₄ are 1011 and the gate EX-OR₄ becomes "0". When the next Cp appears, the data is transferred to the FF_(a), so that FF_(a) to FF_(d) are set to 0011. In other words, W₁ =1, W₂ =0, W₃ =0 and W₄ =1 and this state expressly indicates the W_(5e) itself.

As seen from the circuit of FIG. 6, in decoding the data word W₂ the W₂ ', W_(5e) and S₁ are added by the gate circuit (G-2) and the adders (A-3) and (A-2). As previously stated, S₁ =W_(2e) ⊕W_(5e) ##EQU24## With this contents, we have ##EQU25## Additionally, the data word W₅ is ##EQU26## In this way, the original signal W₂ and W₅ may be decoded. The number of the data words and the number of bits of one word may be properly selected. For example, the circuit construction required when a data word comprises 14 bits is illustrated in FIG. 8. The circuit shown in FIG. 8 may be considered as a simple extension of that of FIG. 7.

In the foregoing description, the initial value of the linear feedback shift register 21 is set with the data a_(g) of the data to be decoded a₁, a₂, a₃, . . . a_(g) . . . a_(n). However, when the initial value is set with the data a₁ and the shift direction of the shift register is reversed, the decoded data are obtained in the order of a₁, a₂, . . . a_(g-1), a_(g+1). . . a_(m), a_(g).

The major feature of this embodiment resides in that the data are decoded in the order of a_(g), a_(m), a_(m-1), . . . a_(g+1), a_(g-1) . . . a₂, a₁ or in the reverse order, or that, to obtain the column b₁, the b₁ row (=a_(g)) or the b₂ row is set as the initial value of the linear feedback shift register 21, without adding b₁ ' and b₄ '.

Another embodiment of the invention will be described referring to FIG. 9. The assumption similar to that of FIG. 7 is also employed in this embodiment. As shown, a linear feedback shift register 31 for the M matrix generator (MG) is comprised of flip-flop circuits FF₁ to FF₄, exclusive OR circuits EX-OR₁, and EX-OR₅ to EX-OR₈ and AND gates G_(a) -G_(d). An initial data generator circuit 32 is comprised of inverters I₁ and I₂, and OR circuits OR₂ and OR₃. Depending on the data k(=j-i) applied from the error word control circuit (EC), the initial data generator circuit 32 sets a selection signal to decode the data word W₄ (W_(n)) in the linear feedback shift register 31 as the initial value, by signals d₁ to d₄. In this case, the setting of the initial value is of course made by a preset signal Pr. The initial value set is 0111 when k=1; it is 1101 when k=2; it is 1100 when k=3. Similarly, a selection signal to decode W₄ is set.

Every time the clock pulse Cp is supplied, the flip-flops FF₁ to FF₄ produce signals corresponding to the data words W₄ to W₂.

In response to this signal, the selection to decode W_(je) from the S₁ ⊕T^(i-7) S₂ is performed by the AND gates G₁₁ to G₁₄ corresponding to the gate circuit (G-1). The output signals of those gates are summed by the exclusive circuits EX-OR₂ to EX-OR₄ corresponding to the adder circuit (A-2), with the result that the data W_(je) is decoded into bit serial data.

In this case, however, the linear feedback shift register 31 produces the vector values obtained when the shift register in FIG. 5 is shifted four times. Accordingly, the data words W₄ to W₂ are decoded but the data word W₁ is not decoded since the signal b₁ to decode W₁ is not generated.

In this embodiment, when the third shift pulse Cp is generated, the gate control signal CG is made "1" and the initial value data b₄ is added to the D input of the flip-flops FF₁ to FF₄ through the AND gates G_(a) to G_(d), thereby to produce the b₁. By using the b₁, W₁ is decoded.

In this way, the data words W₄, W₃ and W₁ are decoded subsequently.

The explanation to follow is for a process to decode only the error components W_(j2) and W_(j5) of the data words W₂ ' and W₅ '. In this case, the error words are the second and fifth words, k=j-i=5-2=3.

When k=3, only the line 3 is "1" and the remaining lines are "0". Accordingly, 1100 are set in the flip-flops FF₁ to FF₄ by a preset signal Pr. The outputs of the flip-flops FF₁ to FF₄ and the signals m₄ to m₁ of the S₁ ⊕T^(i-7) S₂ are ANDed together by gates G₁₁ -G₁₄. As a result, the output of G₁₁ is m₄ ×FF₁ =0×1=0; the output of G₁₂ is m₃ ×FF₂ =1×1=1; the output of G₁₃ is m₂ ×FF₃ =1×0=0; the output of G₁₄ is m₁ ×FF₄ =1×0=0. When the outputs G₁₁ to G₁₄ are all summed by the gates EX-OR₂ to EX-OR₄. 0⊕1⊕0⊕0=1 and therefore the data word W₄ is produced. When the clock pulse Cp is received, the flip-flops FF₁ to FF₄ are 0110. During this the signal CG is "0".

In other words, the Q output signal of FF₁ shifted to FF₂ ; the Q output signal of FF₂ is shifted to FF₃ is shifted; the Q output signal of FF₃ to FF₄ ; the result of the addition of the Q outputs signals of FF₃ and FF₄ is shifted to FF₁.

As a result, the outputs of those flip-flops FF₁ to FF₄ and the signals m₄ to m₁ are ANDed together and the results of the ANDed ones are summed to be "0", so that W₃ generated.

Similarly, in response to the clock pulse Cp, the flip-flops FF₁ to FF₄ are 1011 and are ANDed together with the signals m₄ to m₁ so that the result of the addition of those ANDed ones becomes "0" and the word W₂ is generated. Then, every time the clock pulse Cp is received, the signal CG is made "1".

In response to the clock pulse Cp, the addition of the initial data set in the flip-flops FF₃, FF₄ and FF₁, 1⊕1⊕1=1, is set in the flip-flop FF₁. The addition of the output data of the flip-flop FF₁ and the initial data of the flip-flop FF₂, i.e. 1⊕1=0, is set in the flip-flop FF₂. The addition of the output data of the flip-flop FF₂ and the initial value of the flip-flop FF₃, 0⊕0=0, is set in the flip-flop FF₃. The addition of the output data of the flip-flop FF₃ and the initial value of the flip-flop FF₄, i.e. 1⊕0=1, is set in the flip-flop FF₄. Through those setting of the flip-flops, the flip-flops FF₁ to FF₄ are 1001.

Those output signals of the flip-flops and the signals m₄ to m₁ are ANDed together and summed to be "1", so that the data word W₁ is sent out.

In this way, W₄ =1, W₃ =0, W₂ =0 and W₁ =1 as the data word W_(5e) is generated.

As seen from FIG. 6, the decoding of W₂ is realized by the addition of W_(5e), W₂ ' and S₁.

Since S₁ =W_(2e) ⊕W_(5e), ##EQU27## Hence ##EQU28## The signal W₅ is ##EQU29##

In this way, the original signals W₂ and W₅ may be decoded.

In the embodiment shown in FIG. 9, the number of the data words and the number of the bits of one word may properly be selected as required. An example when one word is comprised of 14 bits is illustrated in FIG. 10. As shown, the circuit construction of the FIG. 10 is a mere extension of the circuit construction shown in FIG. 9.

In the above-mentioned embodiment, the initial value of the linear feedback shift register 31 is set with the data a_(m) of those data to be decoded a₁, a₂, a₃, . . . a_(g), . . . a_(n). However, when the initial value is set with the data a₁ and the shift direction of the shift register is reversed, the decoded data are obtained in the order of a₁, a₂, a₃, . . . a_(g-1), a_(g+1), . . . a_(m), a_(g).

The major feature of this embodiment resides in that the data are decoded in the order of, a_(m), a_(m-1), . . . a_(g+1), a_(g), a_(g-1), . . . a₂, a₁ or in the reverse order. To obtain the column b₁, b₁ ' and b₄ ' are added and a_(m) or a₁ is set with the initial value of the linear feedback shift register 31.

Referring now to FIG. 11, there is shown another embodiment of the error data correcting system according to the invention. The assumption similar to that of FIG. 7 is also employed in this embodiment.

As shown, a linear feedback shift register 41 for the M matrix generator (MG) is comprised of flip-flops (FF₁) to (FF₄) and an exclusive OR circuit (EX-OR₁). An initial data generator circuit 42 is comprised of inverters (I₁) and (I₂) and the OR circuits (OR₂) and (OR₃). Depending on the data k (=j-i) applied from the error data control circuit (EC) shown in FIG. 6, a selection signal to decode W₄ (W_(n)) is set as the initial value by signals d₁ to d₄ in the linear feedback shift register 41. The setting of the shift register 41 is of course made by the preset signal (Pr). The preset signal (Pr) is used to set the initial value in flip-flops (FF_(a)) to (FF_(c)) to be described later and clears the flip-flops. The initial value set in the flip-flops is 0111 when k=1; it is 1101 when k=2; it is 1100 when k32 3. Similarly, a selection signal to decode the signal W₄ is set therein.

Every time the clock pulse (Cp) comes in, the flip-flops (FF₁) to (FF₄) produce signals (W₄) to (W₂).

The selection of the data W_(je) from the S₁ +T^(i-7) S₂ by this signal is made by the AND gates (G11) to (G14) corresponding to the gate circuit (G-1). The addition of the output signals from the AND gates (G1) to (G4) is made by the exclusive OR gate (EX-OR₂) to (EX-OR₄) corresponding to the adder (A-2), so that the data (W_(je)) is decoded in a bit serial manner.

However, in this case, the linear feedback shift register 41 produces the vector values when the shift register shown in FIG. 5 is shifted four times. Accordingly, the (W₄) to (W₂) are decoded but the (W₁) is not decoded since the (b₁) to decode the (W₁) is not generated.

The embodiment described above does not produce the output signal from the exclusive OR gate (EX-OR₄) directly, but the output of gate EX-OR₄ is supplied to the flip-flops (FF_(a)) to (FF_(c)). The exclusive OR gate (EX-OR₁₉) adds the output of EX-OR₄ and FF_(c) to decode W₁.

The flip-flops (FF_(a)) to (FF_(c)) are cleared simultaneously with the setting of the initial values of the flip-flops (FF₁) to (FF₄). The linear feedback shift register 41 generates the signal (b₁ '), not the signal (b₁) to decode (W₁), after the selection signals to decode (W₄), (W₃) and (W₂) are generated. The addition of (W₁ ') and (W₄) selected and decoded by (b₁ ') is equivalent to decoding (W₁) by adding (b₁ ') and (b₄ ').

By adding (W₄) and (W₁ ') left in the flip-flop (FF_(c)) by the exclusive OR gate (EX-OR₁₉), even when the linear feedback shift register 41 produces (b₁ '), (W₁) is decoded, so that, as a whole, (W₄), (W₃), (W₂) and (W₁) are decoded in this order.

The decoding of the error data components W_(2e) and W_(5e) of the W₂ ' and W₅ ' will now be described. Since the error words are the second and fifth words, k=5-2=3, only the line 3 of the initial preset data of the FF₁ to FF₄ is "1". The remaining lines are "0", FF₁ =1, FF₂ =1, FF₃ =0 and FF₄ =0. This state of those flip-flops is set up by the preset signal Pr. At the same time, the flip-flops FF_(a) to FF_(c) are cleared.

Here, since m₁ =1, m₂ =1, m₃ =1, and m₄ =0, the output of gate G₁₁ is m₄ ×FF₁ =0×1=0; the output of gate G₁₂ is m₃ ×FF₂ =1×1=1; the output of gate G₁₃ is m₂ ×FF₃ =1×0=0; the output of gate G₁₄ is m₁ ×FF₄ =1×0=0. Those outputs are all added, 0+1⊕0⊕0=1, and the result of the addition is delivered to the gate EX-OR₁₉. Here, the flip-flop FF_(c) is "0" and therefore "1" of the W₄ is generated first. In this condition, when the clock pulse Cp comes in, the output of the gate EX-OR₄ is set in the flip-flop FF_(a) while at the same time the flip-flops FF₁ to FF₄ are set to 0110, respectively.

Those output signals are similarly applied to the gates G₁₁ to G₁₄ to select the signals m₄ to m₁. Since they are added, the output of gate EX-OR₄ becomes 0⊕1⊕1⊕0=0. The output signal is added to the output ("0") of the flip-flop FF_(c), so that W₃ =0⊕0=0 is sent out. With the next clock pulse Cp, FF_(a) =0 and FF_(b) =1, so that FF₁ to FF₄ are 1011. Similarly, those outputs are transferred to the gates G₁₁ to G₁₄ where they are ANDed with the signals m₄ to m₁. The outputs of the AND gates G₁₁ -G₁₄ are all added. Here, the output of the exclusive OR gate EX-OR₄ is 0⊕0⊕1⊕1=0. This signal is added to the output (0) of the flip-flop FF_(c), 0⊕0=0, and the result of the addition is generated as W.sub. 2.

When the clock pulse Cp sets the FF_(a) to FF_(c) to 0, 0 and 1, FF_(a) =0, FF_(b) =0 and FF_(c) =1, the flip-flops FF₁ to FF₄ are immediately set to 0101, respectively. Those outputs are transferred to the gates G₁₁ to G₁₄ where they are ANDed with the signals m₄ to m₁. The outputs of the AND gates G₁₁ -G₁₄ added, 0⊕1⊕0⊕1=0. In other words, the output of the gate EX-OR₄ becomes "0". As a result of the addition of the output "0" of the gate EX-OR₄ and the output "1" of the flip-flop FF_(c), the gate EX-OR₁₉ produces 0⊕1=1, i.e. W₁. In this way, W₄ =4, W₃ =0, W₂ =0, and W₁ =1, as W_(5e), are decoded.

As seen from FIG. 6, to decode W₂, W_(5e) and S₁ are first summed to give W_(2e). Next, W_(2e) is summed with W₂ ' to give W₂. Since S₁ =W_(2e) ⊕W_(5e), ##EQU30## From this, we have ##EQU31## The signal W₅ is given ##EQU32## In this way, the original signals W₂ and W₅ are decoded.

In the embodiment of FIG. 11, the number of the data words and the number of bits of one word may properly be selected as required. An example of the circuit construction when 14 bits are used for one word is illustrated in FIG. 12. As seen from the figure, the circuit construction shown in FIG. 12 is a mere expansion of the circuit shown in FIG. 11.

In the embodiment shown in FIG. 11 or FIG. 12, the initial value of the linear feedback shift register 41 is set with the data a_(m) of those data to be decoded a₁, a₂, a₃, . . . a_(g), . . . a_(n). However, when the initial value is set with the data a₁ and the shift direction of the shift register is reversed, the decoded data are obtained in the order of a₁, a₂, a₃, . . . a_(g-1), a_(g+1), . . . a_(m), a_(g).

The major feature of this embodiment resides in that in order to obtain the column b₁ for decoding the data in the order of a_(m), a_(m-1), . . . a_(g+a), a_(g), a_(g-1) . . . a₂, a₁ or in the reverse order, W₁ ' and W₄ are added in place of the addition of b₁ ' and b₄ ' to obtain equivalently W₁, and a_(m) or a_(l) is set with the initial value of the linear feedback shift register 41.

The M matrix generator for decoding using the linear feedback shift register is applicable for the system for directly decoding W_(i) and W_(j) without adding all of the data words.

The error data correcting circuit is well adapted for a system for transmitting, recording or reproducing digitized information signals by PCM, for example. It is evident that the invention is applicable for other suitable digital systems within the scope of the invention.

As described above, according to the invention, in constructing the M matrix generator for decoding, a large capacitive ROM is not needed and hence the M matrix generator thus constructed is simple in construction and exhibits high speed in data processing. Further, when the matrix is fabricated by LSI technology, the number of the components needed is considerably reduced. Accordingly, the error data correcting circuit with the linear feedback shift register realized by the invention has such excellent features. 

What is claimed is:
 1. An error data correcting system in which a group of n data words (W₁) through (W_(n)) each including m bits has associated therewith a P check code ##EQU33## and a Q check code ##EQU34## the system being capable of correcting erroneous data words W_(ie) and W_(je), the system comprising:first means for decoding said P check code to generate a first syndrome data word S₁ ; second means for decoding said Q check code to generate a second syndrome data word S₂ ; first means for summing corresponding bits in said syndrome data words S₁ and S₂ to produce a syndrome sum data word; M matrix generator means for generating an M matrix corresponding to M(x)=X^(m) +X^(g) +1; means for controlling said M matrix generator means to produce M matrix selector signals; second means for summing said syndrome sum data word and said M matrix selector signal to generate a first intermediate data word W_(jc) ; third means for summing W_(je) and S₁ to generate a second intermediate data word, W_(ic) ; and means for combining (1) the data words W_(je) and W_(jc) to produce corrected data word W_(j), and (2) the data words W_(ie) and W_(ic) to produce the corrected data word W_(i).
 2. A data correcting system according to claim 1 wherein said M matrix generator means comprises a linear feedback shift register.
 3. A data correcting system according to claim 2 wherein said controlling means includes means for setting said linear feedback shift register to a value corresponding to the difference in relative positions i, j of said erroneous data words W_(ie) and W_(je) respectively, in said group of n data words.
 4. A data correcting system according to claim 2 wherein said linear feedback shift register has a forward shift direction and a reverse shift direction and wherein said controlling means includes means for establishing an initial value in said linear feedback shift register by shifting the contents thereof one position in said reverse direction. 